import 'package:flutter/material.dart';

class RowColumnRoute extends StatefulWidget {
  const RowColumnRoute({Key? key}) : super(key: key);

  @override
  _RowColumnRouteState createState() => _RowColumnRouteState();
}

class _RowColumnRouteState extends State<RowColumnRoute> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('row-column布局'),
      ),
      body: ConstrainedBox(
        constraints: const BoxConstraints(minHeight: double.infinity),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          mainAxisSize: MainAxisSize.min,
          children: [Text('hello'), Text('world')],
        ),
      ),
    );
  }
}
